package com.sgcc.pda.mdrh.task.safe.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;

import com.sgcc.pda.safe.SafeAidl;
import com.sgcc.pda.safe.SafeAidlCallback;

/**
 * 描述：安全认证服务基类
 * 作者：jianiuqi 2020-09-17 19:27
 */
public abstract class SafeService extends Service {

    public static final String TAG = "AIDLService";
    private SafeAidl.Stub mBinder = new SafeAidl.Stub() {
        public String post(String data, SafeAidlCallback callback) throws RemoteException {
            return SafeService.this.post(data, callback);
        }
    };

    public SafeService() {

    }

    public abstract String post(String data, SafeAidlCallback callback);

    public IBinder onBind(Intent intent) {
        return this.mBinder;
    }
}
